/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "定价流程原始物料分析",TableName = "cw_djlc_analyze_oldnumber")]
    public partial class cw_djlc_analyze_oldnumber:BaseEntity
    {
        /// <summary>
       ///定价流程id
       /// </summary>
       [Key]
       [Display(Name ="定价流程id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid cw_djlc_djzb_id { get; set; }

       /// <summary>
       ///定价流程编号
       /// </summary>
       [Display(Name ="定价流程编号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string cw_djlc_code { get; set; }

       /// <summary>
       ///原始物料编号
       /// </summary>
       [Display(Name ="原始物料编号")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string oldbomnumber { get; set; }

       /// <summary>
       ///子件物料号
       /// </summary>
       [Display(Name ="子件物料号")]
       [MaxLength(36)]
       [Column(TypeName="varchar(36)")]
       [Editable(true)]
       public string oldcomponentnum { get; set; }

       /// <summary>
       ///物料描述
       /// </summary>
       [Display(Name ="物料描述")]
       [MaxLength(500)]
       [Column(TypeName="varchar(500)")]
       [Editable(true)]
       public string olddescription { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? num { get; set; }

       /// <summary>
       ///单价
       /// </summary>
       [Display(Name ="单价")]
       [DisplayFormat(DataFormatString="16,6")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? unitprice { get; set; }

       /// <summary>
       ///总价
       /// </summary>
       [Display(Name ="总价")]
       [DisplayFormat(DataFormatString="27,8")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? price { get; set; }

       /// <summary>
       ///分组
       /// </summary>
       [Display(Name ="分组")]
       [MaxLength(100)]
       [Column(TypeName="varchar(100)")]
       [Editable(true)]
       public string oldgroupnumname { get; set; }

       
    }
}